class Base
{
    public int a;
    public int b;

     public int c=199;

}
class Derivce extends  Base
{
    public int c=9;

    public void func()
    {
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);//优先子类
        System.out.println(super.c);//拿的是父类的
        System.out.println(this.c);//自己的
    }
}
public class Test2 {
    public static void main(String[] args) {
        Derivce derivce=new Derivce();
        derivce.func();
    }
}
